#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "sdkconfig.h"

#define LED1 10
#define LED2 11
void configure_led(void)
{
    gpio_config_t io_config = {
        .pin_bit_mask = (1ull << LED1) | (1ull << LED2),
        .mode = GPIO_MODE_OUTPUT,
        .pull_down_en = 1};
    gpio_config(&io_config);
}

void app_main(void)
{

    /* Configure the peripheral according to the LED type */
    configure_led();

    while (1)
    {
        gpio_set_level(LED1, 1);
        gpio_set_level(LED2, 0);
        vTaskDelay(500 / portTICK_PERIOD_MS);

        gpio_set_level(LED1, 0);
        gpio_set_level(LED2, 1);
        vTaskDelay(500 / portTICK_PERIOD_MS);
    }
}
